package cn.minsh.lims.eoms.modules.app.controller.req.app;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author Administrator
 */
@Data
@ApiModel("提交巡检结果")
public class AppUserInspectionSubmitResultReq {
    @ApiModelProperty("工单id")
    private Long id ;
    @ApiModelProperty("巡检结果")
    private PlanResult planResult ;


    @Data
    @ApiModel("提交巡检结果-巡检结果")
    public static class PlanResult{
        @ApiModelProperty("记录id")
        private Long id ;
        @ApiModelProperty("巡检范围id")
        private Long scopeId ;
        @ApiModelProperty("说明")
        private String explain ;
        @ApiModelProperty("现场图片列表")
        private List<String> picList ;
        @ApiModelProperty("巡检内容")
        private List<Content> contentList ;

        @Data
        @ApiModel("提交巡检结果-巡检结果-巡检内容")
        public static class Content{
            @ApiModelProperty("记录id")
            private Long id ;
            @ApiModelProperty("巡检内容")
            private String content ;
            @ApiModelProperty("巡检结果：0正常，1异常")
            private Integer result ;
        }
    }
}
